SignalGroup.connectObject

Connects @c_handler to the signal @detailed_signal on #GSignalGroup:target.

Ensures that the @object stays alive during the call to @c_handler by temporarily adding a reference count. When the @object is destroyed the signal handler will automatically be removed.

You cannot connect a signal handler after #GSignalGroup:target has been set.

class SignalGroup
void
connectObject

Parameters

detailedSignal string

a string of the form signal-name with optional ::signal-detail

cHandler GCallback

the #GCallback to connect

object void*

the #GObject to pass as data to @c_handler calls

flags GConnectFlags

#GConnectFlags for the signal connection

Meta

Since

2.72